package nl.devatwork.hello.world.service.base;
 
import nl.devatwork.hello.world.service.HelloWorldService;

import com.liferay.portal.SystemException;
import com.liferay.portal.service.base.PrincipalBean;
import com.liferay.portal.util.PortalUtil;
 
public abstract class HelloWorldServiceBaseImpl extends PrincipalBean implements HelloWorldService {
    @com.liferay.portal.kernel.bean.BeanReference(name = "nl.devatwork.hello.world.service.HelloWorldService.impl")
    protected HelloWorldService helloWorldService;
 
    public HelloWorldService getHelloWorldService() {
        return helloWorldService;
    }
 
    public void setHelloWorldService(HelloWorldService helloWorldService) {
        this.helloWorldService = helloWorldService;
    }
 
    protected void runSQL(String sql) throws SystemException {
        try {
            PortalUtil.runSQL(sql);
        } catch (Exception e) {
            throw new SystemException(e);
        }
    }
}